# 防止被多次 include
!contains(INCLUDED_PRI, mqtt) {
    INCLUDED_PRI += mqtt

    INCLUDEPATH += $$PWD

    HEADERS += \
        $$PWD/qmqtt_client.h \
        $$PWD/qmqtt_frame.h \
        $$PWD/qmqtt_message.h \
        $$PWD/qmqtt_routesubscription.h \
        $$PWD/qmqtt_routedmessage.h \
        $$PWD/qmqtt_router.h \
        $$PWD/qmqtt_networkinterface.h \
        $$PWD/qmqtt_socketinterface.h \
        $$PWD/qmqtt_timerinterface.h \
        $$PWD/qmqtt_client_p.h \
        $$PWD/qmqtt_message_p.h \
        $$PWD/qmqtt_network_p.h \
        $$PWD/qmqtt_socket_p.h \
        $$PWD/qmqtt_ssl_socket_p.h \
        $$PWD/qmqtt_timer_p.h \
        $$PWD/qmqtt_websocket_p.h \
        $$PWD/qmqtt_websocketiodevice_p.h \
        $$PWD/qmqttclient.h

    SOURCES += \
        $$PWD/qmqtt_client_p.cc \
        $$PWD/qmqtt_client.cc \
        $$PWD/qmqtt_frame.cc \
        $$PWD/qmqtt_message.cc \
        $$PWD/qmqtt_network.cc \
        $$PWD/qmqtt_routesubscription.cc \
        $$PWD/qmqtt_router.cc \
        $$PWD/qmqtt_socket.cc \
        $$PWD/qmqtt_ssl_socket.cc \
        $$PWD/qmqtt_timer.cc \
        $$PWD/qmqtt_websocket.cc \
        $$PWD/qmqtt_websocketiodevice.cc \
        $$PWD/qmqttclient.cc
}




# INCLUDEPATH += $$PWD

# PUBLIC_HEADERS += \
#     $$PWD/qmqtt_client.h \
#     $$PWD/qmqtt_frame.h \
#     $$PWD/qmqtt_message.h \
#     $$PWD/qmqtt_routesubscription.h \
#     $$PWD/qmqtt_routedmessage.h \
#     $$PWD/qmqtt_router.h \
#     $$PWD/qmqtt_networkinterface.h \
#     $$PWD/qmqtt_socketinterface.h \
#     $$PWD/qmqtt_timerinterface.h

# PRIVATE_HEADERS += \
#     $$PWD/qmqtt_client_p.h \
#     $$PWD/qmqtt_message_p.h \
#     $$PWD/qmqtt_network_p.h \
#     $$PWD/qmqtt_socket_p.h \
#     $$PWD/qmqtt_ssl_socket_p.h \
#     $$PWD/qmqtt_timer_p.h \
#     $$PWD/qmqtt_websocket_p.h \
#     $$PWD/qmqtt_websocketiodevice_p.h

# SOURCES += \
#     $$PWD/qmqtt_client_p.cpp \
#     $$PWD/qmqtt_client.cpp \
#     $$PWD/qmqtt_frame.cpp \
#     $$PWD/qmqtt_message.cpp \
#     $$PWD/qmqtt_network.cpp \
#     $$PWD/qmqtt_routesubscription.cpp \
#     $$PWD/qmqtt_router.cpp \
#     $$PWD/qmqtt_socket.cpp \
#     $$PWD/qmqtt_ssl_socket.cpp \
#     $$PWD/qmqtt_timer.cpp \
#     $$PWD/qmqtt_websocket.cpp \
#     $$PWD/qmqtt_websocketiodevice.cpp
